delta = -dy * SLIDER_SCROLL_STEP;
}
- this._value = Math.min(Math.max(0, this._value + delta), this._maxValue);
+ this.value = Math.min(Math.max(0, this._value + delta), this._maxValue);
- this.queue_repaint();
- this.notify('value');
return Clutter.EVENT_STOP;
}
let key = event.get_key_symbol();
if (key == Clutter.KEY_Right || key == Clutter.KEY_Left) {
let delta = key == Clutter.KEY_Right ? 0.1 : -0.1;
- this._value = Math.max(0, Math.min(this._value + delta, this._maxValue));
- this.queue_repaint();
this.emit('drag-begin');
- this.notify('value');
+ this.value = Math.max(0, Math.min(this._value + delta, this._maxValue));
this.emit('drag-end');
return Clutter.EVENT_STOP;
}
newvalue = 1;
else
newvalue = (relX - handleRadius) / (width - 2 * handleRadius);
- this._value = newvalue * this._maxValue;
- this.queue_repaint();
- this.notify('value');
+ this.value = newvalue * this._maxValue;
}
_getMinimumIncrement() {